from django.contrib.syndication.feeds import Feed
from ehmn.models import Pathway

class PathFeed(Feed):
    title = "pathways"
    link="http://csb.inf.ed.ac.uk/pathway/"
    description="list of pathways"
    def items(self):
        #What items to use in the feed
        return Pathway.objects.all()
    def item_des(self,item):
        #What items to use in the feed
        return item.category
